package com.fatcat.easybuy.service;


import com.fatcat.easybuy.pojo.EasyBuyUserAddress;

import java.util.List;

/**
* @author Fatcat
* @description 针对表【easybuy_user_address】的数据库操作Service
* @createDate 2025-09-10 11:11:58
*/
public interface EasyBuyUserAddressService {
    //根据用户id获取地址数量
    Integer selectAddressCountOfUser(Long userId);
    //设置默认地址
    boolean setDefaultAddress(Long userId,Integer id);
    //根据用户id获取所有地址
    List<EasyBuyUserAddress> getAllAddressByUserid(Long userId);
    //添加地址
    boolean addUserAddress(EasyBuyUserAddress easyBuyUserAddress);
    //根据id获取地址
    String getAddressById(Integer id);
    //更新地址
    boolean updateUserAddress(EasyBuyUserAddress easyBuyUserAddress);
    //删除地址
    boolean deleteUserAddress(Integer id);

}
